package com.xiongwei.manageback.service;

import com.xiongwei.manageback.DTO.BlogDTO;
import com.xiongwei.manageback.domain.SysBlog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiongwei.manageback.utils.AjaxResult;

import java.util.List;

/**
* @author a
* @description 针对表【sys_blog(文章表)】的数据库操作Service
* @createDate 2023-11-08 09:02:02
*/
public interface SysBlogService extends IService<SysBlog> {

    /**
     * 根据用户id获取博客
     * @param userId
     * @return
     */
    List<BlogDTO> getByUserId(Integer userId);
}
